package io.vanaheimr.common.db;

import io.micronaut.core.annotation.Introspected;
import io.micronaut.data.annotation.DateCreated;
import io.micronaut.data.annotation.DateUpdated;
import jakarta.persistence.Id;
import jakarta.persistence.MappedSuperclass;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

@MappedSuperclass
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Introspected
public class BaseEntity {
    @Id
    private Long id;

    @DateCreated
    private LocalDateTime createdTime;


    @DateUpdated
    private LocalDateTime updatedTime;


}
